import { HomeOutlined, SettingOutlined, MedicineBoxOutlined } from "@ant-design/icons";
// <MedicineBoxOutlined />
import Home from "./pages/Home";
import Login from "./pages/Login";
const routes = [
  {
    path: "/",
    key: 'main-app',
    component: Home,
    title: '首页',
    showMenu: true, // 是否在菜单中显示
    icon: HomeOutlined
  },
  {
    path: "/login",
    key: "login",
    component: Login,
    title: '登录',
    showMenu: false,
  },
  {
    key: 'Hospital',
    title: '医院',
    showMenu: true,
    icon: MedicineBoxOutlined,
    children: [
      {
        path: "/Hospital/HospitalDetails",
        key: '/Hospital/HospitalDetails',
        title: '医院详情',
        icon: SettingOutlined,
        showMenu: true,
      },
      {
        path: "/Hospital/Department",
        key: '/Hospital/Department',
        title: '科室管理',
        icon: SettingOutlined,
        showMenu: true,
      },
      {
        path: "/Hospital/Detail",
        key: '/Hospital/Detail',
        title: '查看科室',
        icon: SettingOutlined,
        showMenu: false,
      },
      {
        path: "/Hospital/DoctorEdit",
        key: '/Hospital/DoctorEdit',
        title: '编辑医院',
        icon: SettingOutlined,
        showMenu: false,
      },
      {
        path: "/Hospital/DoctorMGT",
        key: '/Hospital/DoctorMGT',
        title: '医生管理',
        icon: SettingOutlined,
        showMenu: true,
      },
      {
        path: "/Hospital/EditDetails",
        key: '/Hospital/EditDetails',
        title: '医院管理',
        icon: SettingOutlined,
        showMenu: false,
      },
      {
        path: "/Hospital/DoctorView",
        key: '/Hospital/DoctorView',
        title: '查看医院',
        icon: SettingOutlined,
        showMenu: false,
      },
    ]
  },
  {
    key: 'Numbersource',
    title: '号源',
    icon: HomeOutlined,
    showMenu: true,
    children: [
      {
        path: "/Numbersource/management",
        key: '/Numbersource/management',
        title: '号源管理',
        icon: SettingOutlined,
        showMenu: true,
      },
      {
        path: "/Numbersource/Stopdiagnosis",
        key: '/Numbersource/Stopdiagnosis',
        title: '停诊管理',
        icon: SettingOutlined,
        showMenu: true,
      },
      {
        path: "/Numbersource/xiang",
        key: '/Numbersource/xiang',
        title: '详情页',
        icon: SettingOutlined,
        showMenu: false,
      },
    ]
  },
  {
    key: 'sub-vue1',
    title: '订单',
    icon: HomeOutlined,
    showMenu: true,
    children: [
      {
        path: "/Numbersource/OrderMGT",
        key: '/Numbersource/OrderMGT',
        title: '订单管理',
        icon: SettingOutlined,
        showMenu: true,
      }
    ]
  },
  {
    key: 'sub-vue3',
    title: '设置',
    showMenu: true,
    icon: SettingOutlined,
    children: [
      {
        path: "/Numbersource/Account",
        key: '/Numbersource/Account',
        title: '账号设置',
        showMenu: true,
      },
      {
        path: "/Numbersource/Role",
        key: '/Numbersource/Role',
        title: '角色设置',
        showMenu: true,
      },
      {
        path: "/Numbersource/Basic",
        key: '/Numbersource/Basic',
        title: '基础设置',
        showMenu: true,
      },
    ]
  }
  // {
  //   path: "/sub-umi",
  //   key: 'sub-umi',
  //   title: 'umi子应用',
  //   showMenu: true,
  // },
  // {
  //   path: "/sub-second",
  //   key: 'sub-second',
  //   title: 'react1子应用',
  //   showMenu: true,
  // },
  // {
  //   path: "/sub-vitereact",
  //   key: 'sub-vitereact',
  //   title: 'react2子应用',
  //   showMenu: true,
  // }
];

export default routes;
